package com.wangzefeng.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 流程任务表
 * </p>
 *
 * @author wangzefeng
 * @since 2021-03-18
 */
public class WorkflowTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "task_id", type = IdType.AUTO)
    private Integer taskId;

    private Integer businessId;

    private Integer startUserId;

    /**
     * 用户昵称
     */
    private String startUserName;

    /**
     * 任务开始时间
     */
    private Date startTime;

    private Integer endUserId;

    /**
     * 用户昵称
     */
    private String endUserName;

    /**
     * 任务结束时间
     */
    private Date endTime;

    private Integer nodeId;

    private Integer linkId;

    /**
     * 状态
     */
    private Integer status;


    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public Integer getStartUserId() {
        return startUserId;
    }

    public void setStartUserId(Integer startUserId) {
        this.startUserId = startUserId;
    }

    public String getStartUserName() {
        return startUserName;
    }

    public void setStartUserName(String startUserName) {
        this.startUserName = startUserName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Integer getEndUserId() {
        return endUserId;
    }

    public void setEndUserId(Integer endUserId) {
        this.endUserId = endUserId;
    }

    public String getEndUserName() {
        return endUserName;
    }

    public void setEndUserName(String endUserName) {
        this.endUserName = endUserName;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getNodeId() {
        return nodeId;
    }

    public void setNodeId(Integer nodeId) {
        this.nodeId = nodeId;
    }

    public Integer getLinkId() {
        return linkId;
    }

    public void setLinkId(Integer linkId) {
        this.linkId = linkId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "WorkflowTask{" +
        "taskId=" + taskId +
        ", businessId=" + businessId +
        ", startUserId=" + startUserId +
        ", startUserName=" + startUserName +
        ", startTime=" + startTime +
        ", endUserId=" + endUserId +
        ", endUserName=" + endUserName +
        ", endTime=" + endTime +
        ", nodeId=" + nodeId +
        ", linkId=" + linkId +
        ", status=" + status +
        "}";
    }
}
